<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>定位布局</title>
    <style>
        .box1{
            position: absolute;
            background-color: blue;
            top: 30px;
            left: 20px;
        }

    </style>
</head>
<body>
    <div class="box1">123</div>
    <div class="box2">hello</div>
</body>
</html>